<div class="educations index">
	<h2><?php __('Educations');?></h2>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>degree<?php //echo $this->Paginator->sort('degree');?></th>
			<th>school<?php //echo $this->Paginator->sort('school');?></th>
			<th>subject<?php //echo $this->Paginator->sort('subject');?></th>
			<th>board<?php //echo $this->Paginator->sort('board');?></th>
			<th>year<?php //echo $this->Paginator->sort('year');?></th>
			<th>division<?php //echo $this->Paginator->sort('division');?></th>
			<?php
			if($session->read('Auth.User.role')!=1){?>
			<th class="actions"><?php __('Actions');?></th>
			<?php }?>
	</tr>
	<?php
	$i = 0;
	foreach ($educations as $education):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i;//echo $education['Education']['id']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['degree']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['school']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['subject']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['board']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['year']; ?>&nbsp;</td>
		<td><?php echo $education['Education']['division']; ?>&nbsp;</td>
		<?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $education['Education']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $education['Education']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $education['Education']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $education['Education']['id'])); ?>
		</td>
		<?php }?>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<!-- <div class="paging">
		<?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php //echo $this->Paginator->numbers();?>
 |
		<?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div> -->
</div>
<div class="actions">
	<?php echo $this->element('leftmenu'); ?>
</div>
<div class="languages index">
	<h2><?php __('Languages');?></h2>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'languages','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Languages<?php //echo $this->Paginator->sort('Languages');?></th>
			<th>read<?php //echo $this->Paginator->sort('read');?></th>
			<th>write<?php //echo $this->Paginator->sort('write');?></th>
			<th>speak<?php //echo $this->Paginator->sort('speak');?></th>
			<?php
			if($session->read('Auth.User.role')!=1){?>
			<th class="actions"><?php __('Actions');?></th>

        <?php
                        }
        ?>
        </tr>
	<?php
	$i = 0;
	foreach ($languages as $language):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i;//echo $language['Language']['id']; ?>&nbsp;</td>
		<td><?php echo $language['Language']['Languages']; ?>&nbsp;</td>
		<td><?php echo $language['Language']['read']; ?>&nbsp;</td>
		<td><?php echo $language['Language']['write']; ?>&nbsp;</td>
		<td><?php echo $language['Language']['speak']; ?>&nbsp;</td>
		<?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $language['Language']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'languages','action' => 'edit', $language['Language']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'languages','action' => 'delete', $language['Language']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $language['Language']['id'])); ?>
		</td>
		<?php
		}
		?>
		
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<!-- <div class="paging">
		<?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php //echo $this->Paginator->numbers();?>
 |
		<?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div> -->
</div>


<div class="deptexams index">
	<h2><?php __('Departmental Examinations');?></h2>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'deptexams','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Exam Title<?php ///echo $this->Paginator->sort('Exam Title');?></th>
			<th>Date Passing<?php //echo $this->Paginator->sort('Date Passing');?></th>
			<!-- <th><?php //echo $this->Paginator->sort('user_id');?></th> -->
			<!-- <th><?php //echo $this->Paginator->sort('created');?></th>
			<th><?php //echo $this->Paginator->sort('modified');?></th> -->
			<?php
			if($session->read('Auth.User.role')!=1){?>
			<th class="actions"><?php __('Actions');?></th>
			<?php }?>
	</tr>
	<?php
	$i = 0;
	foreach ($deptexams as $deptexam):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $deptexam['Deptexam']['examtitle']; ?>&nbsp;</td>
		<td><?php echo date('d-M-Y', strtotime($deptexam['Deptexam']['datepassing'])); ?>&nbsp;</td>
		<!-- <td>
			<?php //echo $this->Html->link($deptexam['User']['id'], array('controller' => 'users', 'action' => 'view', $deptexam['User']['id'])); ?>
		</td> -->
		<!-- <td><?php //echo $deptexam['Deptexam']['created']; ?>&nbsp;</td>
		<td><?php //echo $deptexam['Deptexam']['modified']; ?>&nbsp;</td> -->
		<?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions" style="text-align:left">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $deptexam['Deptexam']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'deptexams','action' => 'edit', $deptexam['Deptexam']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'deptexams','action' => 'delete', $deptexam['Deptexam']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $deptexam['Deptexam']['id'])); ?>
		</td>
		<?php
		}
		?>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	
</div>

<div class="seniorscalexams index">
	<h2><?php __('Senior scale examinations');?></h2>
	<?php 
	if($session->read('Auth.User.role')!=1)
	echo $this->Html->link(__('Add New', true), array('controller' => 'seniorscalexams','action' => 'add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Exam Title<?php //echo $this->Paginator->sort('Exam Title');?></th>
			<th>Date Passing<?php //echo $this->Paginator->sort('Date Passing');?></th>
			<!-- <th><?php //echo $this->Paginator->sort('user_id');?></th>
			<th><?php //echo $this->Paginator->sort('created');?></th>
			<th><?php //echo $this->Paginator->sort('modified');?></th> -->
			<?php
			if($session->read('Auth.User.role')!=1){?>
			<th class="actions"><?php __('Actions');?></th>
			<?php 
			}
			?>
	</tr>
	<?php
	$i = 0;
	foreach ($seniorscalexams as $seniorscalexam):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $seniorscalexam['Seniorscalexam']['examtitle']; ?>&nbsp;</td>
		<td><?php echo date('d-M-Y', strtotime($seniorscalexam['Seniorscalexam']['datepassing'])); ?>&nbsp;</td>
		<!-- <td>
			<?php //echo $this->Html->link($seniorscalexam['User']['id'], array('controller' => 'users', 'action' => 'view', $seniorscalexam['User']['id'])); ?>
		</td>
		<td><?php //echo $seniorscalexam['Seniorscalexam']['created']; ?>&nbsp;</td>
		<td><?php //echo $seniorscalexam['Seniorscalexam']['modified']; ?>&nbsp;</td> -->
		<?php
			if($session->read('Auth.User.role')!=1){?>
		<td class="actions" style="text-align:left">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $seniorscalexam['Seniorscalexam']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'seniorscalexams','action' => 'edit', $seniorscalexam['Seniorscalexam']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'seniorscalexams','action' => 'delete', $seniorscalexam['Seniorscalexam']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $seniorscalexam['Seniorscalexam']['id'])); ?>
		</td>
		<?php }?>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	/*echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));*/
	?>	</p>

	<!-- <div class="paging">
		<?php //echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php //echo $this->Paginator->numbers();?>
 |
		<?php //echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div> -->
</div>


